<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <script>
    var cuifan;
    console.log(cuifan); // 声明变量但未赋值 ---> undefined

    console.log(cuifan); // 没声明也没赋值 ----> undefined ---> 相当于执行过 var cuifan
    console.log(null); // 空指针
  </script>
</body>

</html>